for n in range(100,1000):
    g=n//100
    s=(n//10)%10
    b=n%10
    if g**3+s**3+b**3==n:
        print("{}是水仙花数".format(n))
